<template>
    <div class="viewDetails2">
        <!-- 头部 -->
        <div class="header">
            <x-icon type="ios-arrow-left" size="" class="icon-white" @click="$router.go(-1)"></x-icon>安全检查
        </div>
        <!-- 内容部分 -->
        <div class="safeDetails2">
            <ul class="ul1">
                <li class="clearfix">
                    <span class="spa">隐患编号</span>
                    <em>2019050632</em>
                </li>
                <li class="clearfix">
                    <span class="spa">项目名称</span>
                    <em>云南省质监局技术监督监测基地</em>
                </li>
                <li class="clearfix">
                    <span class="spa">检查类型</span>
                    <em>专项检查</em>
                </li>
                <li class="clearfix">
                    <span class="spa">检查时间</span>
                    <em>2018-07-10</em>
                </li>
                <li class="clearfix">
                    <span class="spa">检查区域</span>
                    <em>办公大楼</em>
                </li>
                <li class="clearfix">
                    <span class="spa">检查内容</span>
                    <em>消防安全,文明施工,消防,临时检查</em>
                </li>
                <li class="clearfix">
                    <span class="spa">检查重点</span>
                    <em>质监局4楼,临时用点,高空作业脚手架</em>
                </li>
            </ul>
            <ul class="ul2" style="margin-top:10px;">
                <li class="clearfix">
                    <span class="spaTitle">检查组人员及分工</span>
                </li>
                <li class="clearfix">
                    <h3>检查组长</h3>
                    <p>杨丽萍</p>
                </li>
                <li class="clearfix">
                    <h3>成员</h3>
                    <p>李丽(未提交)</p>
                </li>
                <li class="clearfix">
                    <h3>分工</h3>
                    <p>安全管理</p>
                </li>
                <li class="clearfix">
                    <h3>成员</h3>
                    <p>张大大(未提交)</p>
                </li>
                <li class="clearfix">
                    <h3>施工机具</h3>
                    <p>塔吊</p>
                </li>
            </ul>
            <div class="ul3">
                <h3>检查记录 <span>(90分)</span>  <em @click="$router.push('./view2History')">总分: 0分  </em></h3>
                <h4>施工用电 <span>(20分)</span>  <em @click="del1=!del1">共计3条隐患 <x-icon type="ios-arrow-down" size="20" ></x-icon></em></h4>
                <Delete1 v-if="del1"></Delete1>
                <h4>文明施工 <span>(20分)</span>  <em @click="del2=!del2">共计3条隐患 <x-icon type="ios-arrow-down" size="20" ></x-icon></em></h4>
                <Delete2 v-if="del2"></Delete2>
                <h4>塔式起重机与其中吊装 <span>(20分)</span>  <em @click="del3=!del3">共计3条隐患 <x-icon type="ios-arrow-down" size="20" ></x-icon></em></h4>
                <Delete3 v-if="del3"></Delete3>
                <h4>安全管理 <span>(20分)</span>  <em @click="del4=!del4">共计3条隐患 <x-icon type="ios-arrow-down" size="20" ></x-icon></em></h4>
                <Delete4 v-if="del4"></Delete4>
                <h4>模板支架 <span>(20分)</span>  <em @click="del5=!del5">共计3条隐患 <x-icon type="ios-arrow-down" size="20" ></x-icon></em></h4>
                <Delete5 v-if="del5"></Delete5>
                <h4>脚手架 <span>(20分)</span>  <em @click="del6=!del6">共计3条隐患 <x-icon type="ios-arrow-down" size="20" ></x-icon></em></h4>
                <Delete6 v-if="del6"></Delete6>
                <h4>施工机具 <span>(20分)</span>  <em @click="del7=!del7">共计3条隐患 <x-icon type="ios-arrow-down" size="20" ></x-icon></em></h4>
                <Delete7 v-if="del7"></Delete7>
            </div>
            <ul class="ul1">
                <li class="clearfix">
                    <span class="spaTitle" style="width:200px">通知单记录</span>
                </li>
                <li class="clearfix">
                    <span class="spa" style="width:200px">隐患整改通知单</span>
                    <em style="width:100px;" @click="$router.push('./safe2Reform')"><x-icon type="ios-arrow-right" size="30" style="margin-top:-2px"></x-icon></em>
                </li>
                <li class="clearfix">
                    <span class="spa" style="width:200px">整改回复及验收单</span>
                    <em style="width:100px" @click="$router.push('./safe2Receipt')"><x-icon type="ios-arrow-right" size="30" style="margin-top:-2px"></x-icon></em>
                </li>
            </ul>
        </div>
    </div>
</template>
<script>
import { Actionsheet  } from 'vux'
import Delete1 from './dele2/delete1'
import Delete2 from './dele2/delete2'
import Delete3 from './dele2/delete3'
import Delete4 from './dele2/delete4'
import Delete5 from './dele2/delete5'
import Delete6 from './dele2/delete6'
import Delete7 from './dele2/delete7'
export default {
  components: {
    Actionsheet,
    Delete1,
    Delete2,
    Delete3,
    Delete4,
    Delete5,
    Delete6,
    Delete7,
  },
  data (){
      return {
        show: false,
        del1:false,
        del2:false,
        del3:false,
        del4:false,
        del5:false,
        del6:false,
        del7:false,
      }
  },
  methods: { 
    click (key,item) {
      console.log(key,item)
    },
  }
}
</script>
<style lang="less">
.viewDetails2{
    width: 100%;
    height: 100%;
    .header{
        width: 100%;
        height: 40px;
        line-height: 40px;
        text-align: center;
        position: relative;
        font-size: 18px;
        background: #2269ff;
        color: #fff;
        .vux-x-icon{
            fill:cornsilk;
            position: absolute;
            left: 0;
            top: 5px;
            width: 30px;
            height: 30px;
        }
    }
    .safeDetails2{
        height: 603px;
        width: 100%;
        background-color: #ebeef2;
        padding-top: 10px;
        .ul1{
            width: 100%;
            padding: 0 10px;
            background-color: #fff;
            margin-bottom: 20px;
            li{
                padding: 10px 0;
                border-bottom:1px solid #eee;
                width: 100%;
                height: 50px;
                line-height: 30px;
                position: relative;
                font-size: 16px;
                .vux-x-icon{
                    fill: #999;
                    float: right;
                    position: absolute;
                    top: 12px;
                    right: -4px;
                }
                .spa{
                    float: left;
                    width: 96px;
                }
                .spaTitle{
                    float: left;
                    width: 196px;
                    color: #2269ff;
                }
                em{
                    float: right;
                    width: 240px;
                    height: 30px;
                    line-height: 30px;
                    text-align: right;
                    margin-right: 10px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap; 
                }
                .vux-cell-value{
                        float: right;
                        margin-right: 20px;
                    }
            }
        }
        .ul2{
            width: 100%;
            padding: 0 10px;
            background-color: #fff;
            margin-bottom: 10px;
            li{
                border-bottom:1px solid #eee;
                width: 100%;
                line-height: 30px;
                position: relative; 
                font-size: 16px;
                .spaTitle{
                    color: #2269ff;
                    height: 40px;
                    line-height: 40px;
                }
                h3{
                    letter-spacing: 2px;
                    height: 30px;
                    line-height: 30px;
                }
                p{
                    height: 30px;
                    line-height: 30px;
                    font-size: 16px;
                    color: #999;
                }
            }
        }
        .ul3{
            background-color: #ebeef2;
            padding: 10px 0 20px;
            h3,h4{
                margin-top: 10px;
                height: 40px;
                line-height: 40px;
                font-size: 16px;
                color: #2269ff;
                padding: 0 10px;
                border-bottom: 1px solid #eee;
                background-color: #fff;
                span{
                    font-size: 16px;
                    height: 40px;
                    line-height: 40px;
                    color: #999;
                }
                em{
                    float: right;
                    height: 40px;
                    line-height: 40px;
                    position: relative;
                    font-size: 16px;
                    color: #ffb400;
                }
            }
            h4{
                font-size: 16px;
                color: #333;
                em{
                    position: relative;
                    color: #ffb400;
                    .vux-x-icon{
                        fill:#999;
                        float: right;
                        width: 20px;
                        height: 20px;
                        margin-top: 10px;
                    }
                }

            }
        }
        .btn{
            width: 200px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border-radius: 25px;
            background-color: #2269ff;
            margin:40px auto;
            color: #fff;
        }
    }
}
</style>
